package com.yonyong.tao.parts.runspring;

import com.yonyong.tao.controller.ValidController;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;


/**
 * @Describtion Todo
 * @Author yonyong
 * @Date 2020/4/21 15:13
 * @Version 1.0.0
 **/
public class RunSpring {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(MyConfig.class);
        System.out.println(annotationConfigApplicationContext.getBean(ValidController.class).validated("id","name"));

//        BaseExecutor executor = new BaseExecutor() {
//            @Override
//            protected int doUpdate(MappedStatement mappedStatement, Object o) throws SQLException {
//                return 0;
//            }
//
//            @Override
//            protected List<BatchResult> doFlushStatements(boolean b) throws SQLException {
//                return null;
//            }
//
//            @Override
//            protected <E> List<E> doQuery(MappedStatement mappedStatement, Object o, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws SQLException {
//                return null;
//            }
//
//            @Override
//            protected <E> Cursor<E> doQueryCursor(MappedStatement mappedStatement, Object o, RowBounds rowBounds, BoundSql boundSql) throws SQLException {
//                return null;
//            }
//        }
    }
}
